package com.drawingtimer.admin.service;

import com.drawingtimer.admin.model.entity.TProcessFlowCard;
import com.drawingtimer.admin.model.vo.TProcessFlowCardPageVO;
import com.drawingtimer.admin.model.qo.TProcessFlowCardQO;
import com.drawingtimer.admin.model.vo.TProcessInfoPageVO;
import com.hccake.ballcat.common.model.domain.PageParam;
import com.hccake.ballcat.common.model.domain.PageResult;
import com.hccake.extend.mybatis.plus.service.ExtendService;
import org.apache.ibatis.annotations.Param;

import javax.servlet.http.HttpServletResponse;

/**
 * 工序流转卡信息
 *
 * @author jjh 2025-04-24 16:34:16
 */
public interface TProcessFlowCardService extends ExtendService<TProcessFlowCard> {

	/**
	 * 根据QueryObeject查询分页数据
	 * @param pageParam 分页参数
	 * @param qo 查询参数对象
	 * @return PageResult&lt;TProcessFlowCardPageVO&gt; 分页数据
	 */
	PageResult<TProcessFlowCardPageVO> queryPage(PageParam pageParam, TProcessFlowCardQO qo);

	PageResult<TProcessInfoPageVO> getDetailsById(@Param("flowCardNumber") String flowCardNumber);

	void export(Long id, HttpServletResponse response);

	PageResult<TProcessInfoPageVO> getReportingForWorkByFlowCardNumber(String flowCardNumber);

	boolean getDataFromErp();

	TProcessFlowCard getByProcessCardNumber(String processCardNumber);

	boolean getDataFromErpByMo(String flowCardNumber);

}